package com.models;

/**
 * Created by Administrator on 2017/4/12.
 */

import com.alibaba.fastjson.annotation.JSONField;

import javax.persistence.*;
import java.util.ArrayList;
import java.util.List;

public class User extends BaseEntity<Integer> {

    private String username;


    private String realname;


    private String password;


    private String tel;

    private String email;


    private List<UserMappingRole> userMappingRoleList;

    public enum State{normal,stop}

    private State state;


    private List<Role> roleList = new ArrayList<>();

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public List<UserMappingRole> getUserMappingRoleList() {
        return userMappingRoleList;
    }

    public void setUserMappingRoleList(List<UserMappingRole> userMappingRoleList) {
        this.userMappingRoleList = userMappingRoleList;
    }

    public String getUsername() {
        return username;
    }

    public List<Role> getRoleList() {
        return roleList;
    }

    public void setRoleList(List<Role> roleList) {
        this.roleList = roleList;
    }


    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public State getState() {
        return state;
    }

    public void setState(State state) {
        this.state = state;
    }

    public String getRealname() {
        return realname;
    }

    public void setRealname(String realname) {
        this.realname = realname;
    }
}
